Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atoi converts a char * to an int, not to a long #125

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sheeit
Copy link

@sheeit sheeit commented Nov 23, 2017

We can instead use atol if we want to convert to a long.

@orangeduck
Copy link
Owner

I will try to take a quick look at this later - I really can't remember why I decided to use long in this chapter rather than int...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants